package com.cskaoyan.mapper.mallmapper;

import com.cskaoyan.bean.mallbean.Category;
import com.cskaoyan.bean.mallbean.CategoryExample;
import com.cskaoyan.vo.wx.WxHomeIndexVo;
import com.cskaoyan.vo.wx.WxHomeIndexVoChannelBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {
    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    List<Category> selectByExample(CategoryExample example);

    Category selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    void logicDeleteCategory(@Param("id") int id);


    List<WxHomeIndexVoChannelBean> selectSimpleCategory();


    Category selectByExampleLimit1(CategoryExample categoryExample);

}